/* 声破天主页样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: white;
    overflow: hidden;
    height: 100vh;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 主布局 */
.main-container {
    display: flex;
    height: calc(100vh - 90px); /* 减去播放器高度 */
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    width: 240px;
    background-color: #000;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    height: 100%; /* 从main1.css添加，确保侧边栏高度充满 */
}

.logo {
    padding: 0 12px;
    margin-bottom: 18px;
}

.logo svg {
    height: 40px;
    width: auto;
}

.main-nav {
    margin-bottom: 24px;
}

.nav-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #b3b3b3;
}

.nav-item a {
    display: flex;
    align-items: center;
}

.nav-item i {
    margin-right: 16px;
    font-size: 20px;
}

.nav-item:hover {
    color: white;
}

.nav-item.active {
    background-color: #282828;
    color: white;
    border-radius: 4px;
    position: relative;
}

.nav-item.active a {
    color: #fff;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #1DB954;
    border-radius: 4px 0 0 4px;
}

.library-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #121212;
    border-radius: 8px;
    padding: 16px 12px;
    overflow: hidden;
}

.library-header {
    display: flex;
    align-items: center;
    color: #b3b3b3;
    margin-bottom: 16px;
    padding: 4px 0;
}

.library-header h2 {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.library-header i {
    margin-right: 10px;
    font-size: 16px;
}

.library-items {
    flex-grow: 1;
    overflow-y: auto;
}

.liked-songs {
    background: linear-gradient(135deg, #450af5, #8e6cff, #c4efd9);
    padding: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.liked-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(135deg, #3000c6, #c4efd9);
    margin-bottom: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.liked-gradient i {
    font-size: 18px;
    color: white;
}

.liked-songs h3 {
    font-size: 14px;
    margin-bottom: 4px;
    color: white;
    font-weight: 600;
}

.liked-songs p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.playlists {
    margin-top: 12px;
}

.playlist-item {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 8px;
}

.playlist-item:hover {
    background-color: #282828;
}

.playlist-item h3 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item p {
    font-size: 12px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主内容区域 */
.content {
    flex-grow: 1;
    overflow-y: auto;
    background: linear-gradient(180deg, #535353 0%, #121212 100%);
    padding-bottom: 24px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    position: sticky; /* 改为粘性定位 */
    top: -80px; /* 初始隐藏在顶部外面 */
    z-index: 95; /* 确保top-bar不被覆盖 */
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    transition: top 0.3s ease; /* 添加平滑过渡效果 */
}

/* 当向上滚动时显示top-bar的类 */
.top-bar.visible {
    top: 0;
}

.navigation-buttons {
    display: flex;
    gap: 16px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-selector {
    margin-right: 20px;
    position: relative;
}

.language-options {
    display: flex;
    background-color: #242424;
    border-radius: 4px;
    overflow: hidden;
}

.language-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.language-btn:hover {
    color: #fff;
}

.language-btn.active {
    color: #fff;
    background-color: #333;
}

/* 用户菜单和认证按钮 */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-buttons a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.login-btn {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.register-btn {
    background-color: #1DB954;
    color: #000;
    border: 1px solid #1DB954;
}

.register-btn:hover {
    background-color: #1ed760;
}

.auth-buttons i {
    margin-right: 5px;
}

.content-container {
    padding: 0 32px;
}

.greeting-section {
    margin-bottom: 24px;
}

.greeting-section h1 {
    font-size: 32px;
    font-weight: 700;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.card {
    background-color: #181818;
    padding: 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.card:hover {
    background-color: #282828;
}

.card-img {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 纵横比 */
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1DB954;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 2; /* 确保播放按钮位于上层 */
    border: none; /* 确保没有边框 */
    cursor: pointer;
}

.card:hover .play-button {
    opacity: 1;
    transform: translateY(0);
}

.play-button:hover {
    transform: scale(1.05);
    background-color: #1ED760;
}

/* 确保播放按钮内的图标正确显示 */
.play-button i {
    color: #000;
    font-size: 16px;
    line-height: 1;
}

.card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    font-size: 14px;
    color: #b3b3b3;
}

.artist-card .artist-img {
    border-radius: 50%;
}

.artist-card .artist-img img {
    border-radius: 50%;
}

/* 主页内容区容器 */
.home-content {
    transition: opacity 0.3s ease;
}

/* 当播放器内容激活时，隐藏主页内容 */
.player-content-container.active + .home-content {
    opacity: 0;
    pointer-events: none;
}

/* 播放器样式优化 */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #181818;
    border-top: 1px solid #282828;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.now-playing {
    display: flex;
    align-items: center;
    min-width: 180px;
}

.now-playing-cover {
    width: 56px;
    height: 56px;
    margin-right: 14px;
}

.now-playing-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.track-details {
    display: flex;
    flex-direction: column;
}

.track-name {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
}

.artist-name {
    color: #b3b3b3;
    font-size: 12px;
}

.like-track-btn {
    color: #b3b3b3;
    margin-left: 16px;
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
}

.like-track-btn:hover {
    color: #1DB954;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 722px;
    width: 40%;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.control-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 14px;
    margin: 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin: 0 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-pause:hover {
    transform: scale(1.1);
}

.playback-bar {
    width: 100%;
    display: flex;
    align-items: center;
}

.current-time, .total-time {
    color: #b3b3b3;
    font-size: 11px;
    min-width: 40px;
}

.current-time {
    text-align: right;
    margin-right: 8px;
}

.total-time {
    text-align: left;
    margin-left: 8px;
}

.progress-container {
    flex: 1;
    padding: 4px 0;
}

.progress-bar {
    height: 4px;
    background: #535353;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress {
    position: absolute;
    height: 100%;
    background: #b3b3b3;
    border-radius: 2px;
    width: 30%;
}

.progress-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 30%;
    display: none;
}

.progress-bar:hover .progress {
    background: #1DB954;
}

.progress-bar:hover .progress-handle {
    display: block;
}

.player-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 180px;
}

.option-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    margin: 0 8px;
    cursor: pointer;
}

.option-btn:hover {
    color: #fff;
}

.volume-control {
    display: flex;
    align-items: center;
    width: 125px;
}

.volume-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    margin-right: 8px;
    cursor: pointer;
}

.volume-btn:hover {
    color: #fff;
}

.volume-bar {
    width: 80px;
    height: 4px;
    background: #535353;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.volume-level {
    position: absolute;
    height: 100%;
    background: #b3b3b3;
    border-radius: 2px;
    width: 50%;
}

.volume-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    display: none;
}

.volume-bar:hover .volume-level {
    background: #1DB954;
}

.volume-bar:hover .volume-handle {
    display: block;
}

/* 播放器详情页内容区 */
.player-content-container {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 0px); /* 宽度会随JS动态调整 */
    height: 100%;
    background-color: #121212;
    z-index: 90;
    transform: translateY(calc(100% - 90px)); /* 初始位置在播放控制栏 */
    transition: transform 0.5s cubic-bezier(0.3, 0, 0.2, 1); /* 使用平滑的缓动效果 */
    display: none;
    border-left: 1px solid #282828;
    padding-bottom: 90px; /* 等于player-bar的高度 */
}

.player-content-container.active {
    transform: translateY(0);
    display: block;
}

/* 添加隐藏时的动画类 */
.player-content-container.hiding {
    transform: translateY(calc(100% - 90px));
}

.player-content {
    height: 100%;
    overflow-y: auto; /* 将滚动移到此元素 */
    display: flex;
    padding: 80px 32px 24px; /* 顶部内边距避免被顶栏遮挡 */
    color: #fff;
}

.player-content-container .top-bar {
    position: sticky;
    top: 0;
    z-index: 96;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 在滚动中显示顶栏 */
.player-content-container .top-bar.visible {
    top: 0;
}

.player-main {
    flex: 2;
    margin-right: 24px;
}

.player-sidebar {
    flex: 1;
    margin-top: 48px;
}

/* 当前播放详情 */
.now-playing-details {
    display: flex;
    margin-bottom: 40px;
    padding-top: 20px; /* 确保专辑封面不被顶部栏遮挡 */
}

.album-cover {
    width: 300px;
    height: 300px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
    margin-right: 24px;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info-large {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 24px;
}

.track-title {
    font-size: 48px;
    font-weight: bold;
    margin: 8px 0;
}

.track-artist {
    font-size: 18px;
    color: #b3b3b3;
    margin: 8px 0;
}

.track-album {
    font-size: 14px;
    color: #b3b3b3;
    margin: 4px 0 16px;
}

.track-actions-large {
    display: flex;
    align-items: center;
    margin-top: 24px;
}

.action-btn-large {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.action-btn-large:first-child {
    background-color: #1DB954;
    border-radius: 500px;
    font-weight: bold;
}

.action-btn-large:first-child:hover {
    background-color: #1ed760;
    transform: scale(1.04);
}

.action-btn-large i {
    margin-right: 8px;
}

/* 歌词部分 */
.lyrics-container {
    margin-top: 40px;
    margin-bottom: 40px; /* 增加底部外边距，确保内容完全可见 */
}

.lyrics-container h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.lyrics {
    font-size: 16px;
    line-height: 2;
    color: #b3b3b3;
}

.lyric-line {
    margin: 8px 0;
    transition: all 0.3s;
}

.lyric-line.active {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

/* 专辑信息部分 */
.album-info h2,
.playlist-container h2,
.related-artists h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.album-info p {
    margin: 8px 0;
    color: #b3b3b3;
    font-size: 14px;
}

.album-info strong {
    color: #fff;
    margin-right: 8px;
}

/* 播放列表 */
.playlist-container {
    margin-top: 32px;
}

.track-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.track-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-item.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.track-number {
    width: 40px;
    text-align: center;
    color: #b3b3b3;
    font-size: 14px;
}

.track-item.active .track-number,
.track-item.active .track-name {
    color: #1DB954;
}

.track-name {
    font-size: 14px;
    color: #fff;
}

.track-duration {
    font-size: 14px;
    color: #b3b3b3;
}

/* 相关艺术家 */
.related-artists {
    margin-top: 32px;
}

.artist-list {
    display: flex;
    gap: 16px;
}

.related-artist {
    width: 80px;
    text-align: center;
}

.related-artist img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.related-artist p {
    font-size: 14px;
    color: #b3b3b3;
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 语言选择模态框 */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #282828;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #333;
}

.close-btn {
    font-size: 20px;
    color: #b3b3b3;
}

.language-list {
    padding: 16px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.language-item {
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.language-item:hover {
    background-color: #333;
}

/* 用户菜单样式 */
.user-profile-menu {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    position: relative;
    transition: background-color 0.2s;
}

.user-profile-menu:hover {
    background-color: #282828;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-right: 8px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #282828;
    border-radius: 4px;
    width: 200px;
    padding: 8px 0;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 100;
}

.user-dropdown.active {
    display: block;
}

.dropdown-account {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.dropdown-account i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #b3b3b3;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #333;
    color: #fff;
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: #3e3e3e;
    margin: 8px 0;
}

/* 个人资料页面样式 */
.profile-container {
    padding: 0 0 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 32px;
    padding: 32px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

.profile-type {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
}

.profile-join-date {
    font-size: 14px;
    color: #b3b3b3;
    margin-top: 5px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 40px;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-email {
    font-size: 14px;
    color: #b3b3b3;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    margin-top: 24px;
}

.stat-item {
    margin-right: 24px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    color: #b3b3b3;
}

.profile-actions {
    display: flex;
    margin-top: 24px;
}

.profile-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-profile-btn {
    background-color: transparent;
    border: 1px solid #b3b3b3;
    color: #fff;
}

.edit-profile-btn:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.profile-section {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
}

.section-action {
    font-size: 14px;
    color: #b3b3b3;
    cursor: pointer;
}

.section-action:hover {
    color: #fff;
    text-decoration: underline;
}

/* 个人资料页面导航栏样式 */
.profile-navigation {
    margin: 0 32px 32px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-nav-tabs {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    overflow-x: auto;
}

.profile-nav-item {
    color: #b3b3b3;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 20px;
}

.profile-nav-item:hover {
    color: #fff;
}

.profile-nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.premium-banner {
    background: linear-gradient(90deg, #af2896, #509bf5);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.premium-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.premium-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.premium-btn {
    background-color: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s;
}

.premium-btn:hover {
    transform: scale(1.05);
}

/* 选项卡内容样式 */
.tab-content {
    width: 100%;
}

.tab-content .full-width {
    grid-column: 1 / -1;
}

/* 完善卡片网格布局 */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

/* 改进空消息显示 */
.empty-message {
    padding: 20px;
    text-align: center;
    color: #b3b3b3;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin: 10px 0;
}

/* Premium用户标记样式 */
.premium-badge {
    background-color: #1DB954;
    color: #000;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    display: inline-block;
}

/* Premium选项卡样式 */
.profile-nav-tab.premium-tab {
    position: relative;
}

.profile-nav-tab.premium-tab::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #1DB954;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Premium信息区域样式 */
.premium-info-section {
    background-color: rgba(29, 185, 84, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(29, 185, 84, 0.2);
}

.premium-plan-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.premium-icon {
    width: 60px;
    height: 60px;
    background-color: #1DB954;
    color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.premium-icon i {
    font-size: 30px;
}

.premium-plan-details {
    flex: 1;
}

.premium-plan-details h3 {
    margin: 0 0 5px;
    font-size: 20px;
}

.plan-price {
    font-size: 16px;
    margin: 0 0 5px;
}

.expiry-date, .days-left {
    font-size: 14px;
    color: #b3b3b3;
    margin: 2px 0;
}

.days-left {
    color: #1DB954;
}

.auto-renew-notice, .cancel-notice {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.auto-renew-notice i, .cancel-notice i {
    margin-right: 10px;
    font-size: 18px;
}

.auto-renew-notice i {
    color: #1DB954;
}

.cancel-notice i {
    color: #ff7e7e;
}

.auto-renew-notice p, .cancel-notice p {
    margin: 0;
    font-size: 14px;
}

.premium-actions {
    display: flex;
    gap: 15px;
}

.premium-actions button, .premium-actions a {
    padding: 10px 15px;
    border-radius: 500px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.premium-actions button {
    border: none;
}

.cancel-subscription, .resume-subscription {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.cancel-subscription:hover, .resume-subscription:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.change-plan-btn {
    background-color: #1DB954;
    color: #000;
}

.change-plan-btn:hover {
    background-color: #1ed760;
}

/* 订阅管理选项卡样式 */
.subscription-content {
    padding: 20px 0;
}

.current-plan-details {
    margin-bottom: 40px;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.plan-header h3 {
    margin: 0;
    font-size: 24px;
}

.plan-status {
    font-size: 14px;
    color: #b3b3b3;
}

.plan-info-card {
    background-color: #181818;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #282828;
}

.plan-title-area {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.plan-title-details {
    flex: 1;
}

.plan-title-details h4 {
    margin: 0 0 5px;
    font-size: 18px;
}

.plan-features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.plan-feature {
    width: 50%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.plan-feature i {
    color: #1DB954;
    margin-right: 8px;
}

.payment-history h3 {
    margin: 30px 0 15px;
    font-size: 20px;
}

.payment-list {
    background-color: #181818;
    border-radius: 8px;
    overflow: hidden;
}

.payment-header {
    display: flex;
    background-color: #282828;
    padding: 15px;
    font-weight: 600;
}

.payment-header > div {
    flex: 1;
}

.payment-items {
    max-height: 400px;
    overflow-y: auto;
}

.payment-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #282828;
}

.payment-item:last-child {
    border-bottom: none;
}

.payment-item > div {
    flex: 1;
}

/* 没有订阅时的提示区域 */
.no-subscription {
    padding: 20px;
}

.premium-promo {
    background-color: #181818;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.premium-logo {
    width: 80px;
    height: 80px;
    background-color: #1DB954;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.premium-logo i {
    font-size: 40px;
}

.premium-promo h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.premium-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    display: inline-block;
    text-align: left;
}

.premium-benefits li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.premium-benefits i {
    color: #1DB954;
    margin-right: 10px;
}

.premium-upgrade-btn {
    background-color: #1DB954;
    color: #000;
    border: none;
    border-radius: 500px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s;
}

.premium-upgrade-btn:hover {
    background-color: #1ed760;
    transform: scale(1.05);
}

/* 用户Premium标识 */
.user-premium-badge {
    background: linear-gradient(135deg, var(--premium-color), var(--premium-color-dark));
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-premium-badge i {
    font-size: 14px;
}

/* 订阅标签页内容样式优化 */
.subscription-tab-content {
    padding: 24px;
    background-color: var(--background-elevated);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.empty-subscription {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.05), rgba(30, 215, 96, 0.15));
    border-radius: 12px;
    margin: 15px 0;
}

.empty-subscription .empty-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--premium-color), var(--premium-color-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(30, 215, 96, 0.3);
}

.empty-subscription .empty-icon i {
    color: white;
    font-size: 40px;
}

.empty-subscription h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

.empty-subscription p {
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 16px;
    line-height: 1.6;
}

.premium-upgrade-btn {
    background: linear-gradient(135deg, var(--premium-color), var(--premium-color-dark));
    color: white;
    padding: 14px 34px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(30, 215, 96, 0.3);
    border: none;
    outline: none;
    cursor: pointer;
}

.premium-upgrade-btn:hover {
    background: linear-gradient(135deg, var(--premium-color-dark), #0b9a3f);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 15px rgba(30, 215, 96, 0.4);
}

.premium-upgrade-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(30, 215, 96, 0.3);
}

/* 当前订阅详情样式优化 */
.current-subscription-details {
    background-color: var(--background-card);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 18px;
}

.subscription-header h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.subscription-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-active {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.status-canceled {
    background-color: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.subscription-plan-details {
    display: flex;
    margin-bottom: 28px;
}

.plan-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--premium-color-light), var(--premium-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 22px;
    flex-shrink: 0;
}

.plan-icon i {
    color: white;
    font-size: 32px;
}

.plan-info h4 {
    font-size: 20px;
    margin: 0 0 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.plan-price {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.plan-expiry {
    color: var(--text-tertiary);
    margin-bottom: 10px;
    font-size: 14px;
}

.plan-features {
    color: var(--text-secondary);
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.subscription-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cancel-subscription-btn, .resume-subscription-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.cancel-subscription-btn:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
}

.resume-subscription-btn:hover {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: #2ecc71;
}

.change-plan-btn {
    background: linear-gradient(135deg, var(--premium-color-light), var(--premium-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 15px;
}

.change-plan-btn:hover {
    background: linear-gradient(135deg, var(--premium-color), var(--premium-color-dark));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(30, 215, 96, 0.3);
}

/* 支付历史样式优化 */
.payment-history {
    background-color: var(--background-card);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-history h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin: 0 0 22px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    font-weight: 700;
}

.payment-history-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-history-table th {
    text-align: left;
    padding: 14px 18px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
}

.payment-history-table td {
    padding: 18px;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--text-primary);
    font-size: 14px;
}

.payment-history-table tbody tr:hover {
    background-color: var(--background-hover);
}

.payment-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.status-pending {
    background-color: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.status-failed {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.empty-history-message {
    text-align: center;
    color: var(--text-tertiary);
    padding: 35px 0;
    font-style: italic;
    font-size: 15px;
}

/* Premium计划卡片样式优化 */
.premium-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.premium-plan-card {
    background-color: var(--background-card);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.plan-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.plan-cost {
    font-size: 32px;
    font-weight: 800;
    color: var(--premium-color);
    margin-bottom: 5px;
}

.plan-period {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.plan-features-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.plan-feature-item {
    padding: 10px 0;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 15px;
}

.plan-feature-item i {
    color: var(--premium-color);
    margin-right: 10px;
    font-size: 16px;
}

.plan-button, .upgrade-plan, .current-plan {
    background: linear-gradient(135deg, var(--premium-color), var(--premium-color-dark));
    color: white;
    border: none;
    border-radius: 24px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    margin-top: auto;
}

.plan-button:hover {
    background: linear-gradient(135deg, var(--premium-color-dark), #0b9a3f);
    box-shadow: 0 5px 15px rgba(30, 215, 96, 0.3);
    transform: translateY(-2px);
}

.upgrade-plan {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.upgrade-plan:hover {
    background: linear-gradient(135deg, #2980b9, #1f6dad);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.current-plan {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    cursor: default;
}

/* 用户订阅信息显示样式优化 */
.current-subscription-info {
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.1), rgba(30, 215, 96, 0.2));
    border-radius: 12px;
    padding: 28px;
    margin: 20px 0 30px;
    border: 1px solid rgba(30, 215, 96, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.subscription-details {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.subscription-details .plan-info {
    flex-grow: 1;
}

.subscription-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}